<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	煤炭现货交易模拟操作平台
</title>
    <style type="text/css">
        *
        {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        img
        {
            border: 0;
        }
        body
        {
            font-family: "宋体";
            font-size: 12px;
            background-image: url(<s:url value="/resources"/>/images/lg_bg-dot.gif);
            background-repeat: repeat;
        }
        /* 链接 */
        a
        {
            color: #000;
            text-decoration: none;
        }
        a:hover
        {
            color: #F00;
        }
        
        /* 表单样式 */
        input, select, textarea
        {
            font-size: 12px;
            vertical-align: middle;
        }
        
        
        .table
        {
            background-image: url(<s:url value="/resources"/>/images/lg_bg_tlyl.jpg);
            background-repeat: no-repeat;
            width: 1001px;
            height: 678px;
            border: 0;
        }
        .table02
        {
            margin-top: 250px;
            margin-left: 230px;
            width: 525px;
        }
        .table02-text
        {
            font-weight: bold;
            color: #074699;
            line-height: 28px;
            padding-right: 20px;
        }
        .table02-text-bg
        {
            background: url(<s:url value="/resources"/>/images/lg_text-bg.gif) no-repeat;
            width: 226px;
            height: 30px;
            border: 0px;
            line-height: 30px;
            padding-left: 5px;
        }
        
        .table02-shuxian
        {
            background: url(<s:url value="/resources"/>/images/lg_shuxian.gif) no-repeat;
            width: 20px;
            height: 71px;
            padding-right: 10px;
        }
        .table02-but
        {
            background: url(<s:url value="/resources"/>/images/lg_login-but.gif) no-repeat;
            width: 82px;
            height: 69px;
            border: 0px;
            padding-right: 100px;
            cursor: pointer;
        }
    </style>

    <script language="javascript" type="text/javascript">       
        
        function check() {
            if (document.getElementById("userName").value.length < 1) {
                alert('请输入用户名！');
                document.getElementById("userName").focus(); //获得焦点
                return false;
            }if (document.getElementById("password").value.length < 1) {
                alert('请输入密码！');
                document.getElementById("password").focus(); //获得焦点
                return false;
            }
            loginform.method="post";
            loginform.action="<s:url value="/login/logonToTrain"/>";
            loginform.submit();
        }
        
        function replaseText()   
   {   
   
   var t = "<div><select style=\"width:226px;\" id=\"userName\" name=\"loginname\"><option value=\"pxjhy_A004015010\">卖方计划员</option></select></div>"
   document.getElementById("t").innerHTML=t;  
     
   }   
    </script>

</head>
<body>
    <form method="post" name="loginform" id="loginform" onkeypress="if( event.keyCode == 13 ) {check();}">
<div>
</div>

        <div>
            <table width="1000" border="0" align="center" class="table">
                <tr>
                    <td>
                        <table border="0" class="table02">
                            <tr>
                                <td width="" align="right" class="table02-text">
                                    用户名
                                </td>
                                <td width="260">
                                    <label>
                                    <div id="t">
                                        <input name="loginname" type="text" id="userName" class="table02-text-bg" name="tbUserName" />
                                    </div>
                                    </label>
                                </td>
                                <td rowspan="2" class="table02-shuxian">
                                </td>
                                <td width="" rowspan="2">
                                    <label>
                                        <input type="button" name="btnLogin" value="" onclick="check()" id="btnLogin" class="table02-but" />
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="table02-text">
                                    密&nbsp;&nbsp;码
                                </td>
                                <td height="">
                                    <label>
                                        <input name="password" type="password" id="password" value="111111" class="table02-text-bg" />
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" class="table02-text" colspan="4" style="height:70px">                                
                                    <a href="#" target="_self" onclick="replaseText();"><strong  style="color:Red">*无登陆名请点击此处进入【铁路运力提报】交易模拟平台</strong></a>
                                </td>
                            </tr>
                                                    
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <input type="hidden" id="appid" name="appid" value="7" />
    </form>
</body>
</html>
